Skip to content

[TIR] Add schedule primitive ReIndex#11515

Merged
vinx13 merged 1 commit into
apache:mainfrom
vinx13:feat/reindex
Jun 2, 2022
Merged

[TIR] Add schedule primitive ReIndex#11515
vinx13 merged 1 commit into
apache:mainfrom
vinx13:feat/reindex

Conversation

@vinx13

@vinx13 vinx13 commented May 31, 2022

Copy link
Copy Markdown
Member

This PR adds a schedule primitive Reindex. It is similar to cache_read / cache_write, but it changes the buffer shape w.r.t to block iters. This makes the subsequent buffer access become contiguous access to the intermediate (reindex) buffer.

cc @spectrometerHBH @junrushao1994 @Hzfengsy

@vinx13 vinx13 force-pushed the feat/reindex branch 3 times, most recently from a407489 to 6d48a37 Compare May 31, 2022 23:03
@masahi

masahi commented Jun 1, 2022

Copy link
Copy Markdown
Member

Is this similar or equivalent to using cache_read followed by transform_layout with some index map (transpose etc)?

@vinx13

vinx13 commented Jun 1, 2022

Copy link
Copy Markdown
Member Author

It is similar to cache_read or cache_write + transform_layout but not equivalent (mainly in the way of dealing with block iters and loops)

@junrushao

Copy link
Copy Markdown
Member

CC: @spectrometerHBH would you mind reviewing this PR? Thanks a lot!

@vinx13 vinx13 merged commit 12a0f3e into apache:main Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants